package mobile.game.core.support;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author gzoro
 *
 * 玩家连接状态
 */
public class ConnectionStatus {
	// 状态代码
	public static final int STATUS_LOGIN	= 0; // 登录中
	public static final int STATUS_GATE		= 1; // 选择角色
	public static final int STATUS_PLAYING	= 2; // 游戏中
	public static final int STATUS_CLOSED	= 3; // 已断开连接
	
	// 默认状态为登陆中
	public int step = STATUS_LOGIN;
	// 玩家id
	public long humanId;
	// 玩家帐号
	public String account = "";
	// 所在地图node
	public String stageNodeId = "";
	// 所有地图port
	public String stagePortId = "";

	

	@Override
	public String toString() {
		return new ToStringBuilder(this)
				.append("humanId", humanId)
				.append("account", account)
				.append("step", step)
				.append("stageNodeId", stageNodeId)
				.append("stagePortId", stagePortId)
				.toString();
	}

}
